import request from '../utils/request';
export async function findAccounts(body) {
  return request('/api/finance/bank/account/find/many', {
    method: 'POST',
    body,
  });
}
export async function createAccount(body) {
  return request('/api/finance/bank/account/create', {
    method: 'POST',
    body,
  });
}
export async function deleteAccount(body) {
  return request('/api/finance/bank/account/delete', {
    method: 'POST',
    body,
  });
}
export async function updateAccount(body) {
  return request('/api/finance/bank/account/update', {
    method: 'POST',
    body,
  });
}
export async function createRecord(body) {
  return request('/api/finance/record/create', {
    method: 'POST',
    body,
  });
}
export async function findRecord(body) {
  return request('/api/finance/record/find', {
    method: 'POST',
    body,
  });
}
export async function findRecordMany(body) {
  return request('/api/finance/record/find/many', {
    method: 'POST',
    body,
  });
}

export async function findProcureRecordMany(body) {
  return request('/api/finance/procure/payment/find/many', {
    method: 'POST',
    body,
  });
}

export async function procureRecordAssess(body) {
  return request('/api/finance/procure/payment/assess', {
    method: 'POST',
    body,
  });
}

export async function fixedAssess(body) {
  return request('/api/finance/procure/payment/fixed/assess', {
    method: 'POST',
    body,
  });
}
export async function deleteRecord(body) {
  return request('/api/finance/record/delete', {
    method: 'POST',
    body,
  });
}
export async function updateRecord(body) {
  return request('/api/finance/record/update', {
    method: 'POST',
    body,
  });
}
export async function getLastMonthBalance(body) {
  return request('/api/finance/balance/last/month/find', {
    method: 'POST',
    body,
  });
}
export async function getBalance(body) {
  return request('/api/finance/balance/find', {
    method: 'POST',
    body,
  });
}
export async function exportExcel(body) {
  return request('/api/finance/record/export', {
    method: 'POST',
    body,
  });
}

export async function findRecordStatistics(body) {
  return request('/api/finance/record/statistics', {
    method: 'POST',
    body,
  });
}
export async function findPaymentMany(body) {
  return request('/api/finance/payment/find/many', {
    method: 'POST',
    body,
  });
}
export async function assess(body) {
  return request('/api/finance/assess', {
    method: 'POST',
    body,
  });
}
export async function taxAssess(body) {
  return request('/api/finance/tax/assess', {
    method: 'POST',
    body,
  });
}
/**
 * 开票收票记录
 * @param body
 * @returns {Promise<Promise<* | void> | *>}
 */
export async function createInvoiceRecord(body) {
  return request('/api/finance/invoice/record/create', {
    method: 'POST',
    body,
  });
}
export async function updateInvoiceRecord(body) {
  return request('/api/finance/invoice/record/update', {
    method: 'POST',
    body,
  });
}
export async function deleteInvoiceRecord(body) {
  return request('/api/finance/invoice/record/delete', {
    method: 'POST',
    body,
  });
}
export async function findInvoiceRecords(body) {
  return request('/api/finance/invoice/record/find/many', {
    method: 'POST',
    body,
  });
}

export async function findInvoiceSalesMany(body) {
  return request('/api/finance/invoice/sales/find/many', {
    method: 'POST',
    body,
  });
}

export async function invoiceAssess(body) {
  return request('/api/finance/invoice/assess', {
    method: 'POST',
    body,
  });
}

export async function findInvoiceProcureMany(body) {
  return request('/api/finance/invoice/procure/find/many', {
    method: 'POST',
    body,
  });
}

export async function invoiceReceiptAssess(body) {
  return request('/api/finance/invoice/receipt/assess', {
    method: 'POST',
    body,
  });
}
// export async function findShippingFeeMany(body) {
//   return request('/api/finance/pay/shippingFee/find/many', {
//     method: 'POST',
//     body,
//   });
// }
//
// export async function findPublicFeeMany(body) {
//   return request('/api/finance/pay/publicFee/find/many', {
//     method: 'POST',
//     body,
//   });
// }
//
// export async function findLobarFeeMany(body) {
//   return request('/api/finance/pay/lobarFee/find/many', {
//     method: 'POST',
//     body,
//   });
// }
